﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace EnergyWeb.Error
{
    public partial class ErrorDev : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                showErrorInfo();
            }
        }
        public void showErrorInfo()
        {
            Model.SysManage.T_SYS_LOG systemLogModel = new Model.SysManage.T_SYS_LOG();
            BLL.SysManage.T_SYS_LOG logBll = new BLL.SysManage.T_SYS_LOG();
            int intMaxID = logBll.GetMaxId();
            systemLogModel = logBll.GetModel(intMaxID - 1);
            this.lablOperationTime.Text = systemLogModel.OPERATIONTIME.ToString();
            this.lablUserName.Text = systemLogModel.USERNAME;
            this.lablUserSymbol.Text = systemLogModel.USERSYMBOL;
            this.txtErrorContent.Text = systemLogModel.ERRORCONTENT;
            this.txtErrorContent.ReadOnly = true;
        }
    }
}
